<template>
  <view style="text-align: left">
    <view
      style="
        width: 90%;
        height: 80upx;
        background-color: #f8f8f8;
        display: flex;
        justify-content: space-between;
        line-height: 80upx;
        text-align: center;
        margin: 20upx auto;
        z-index: 120;
      "
    >
      <view
        class="zhushubox"
        :style="
          index == 1
            ? ' background:#CFAB71;;width:50%;border-radius: 10px 0px 0px 10px;color:#fff'
            : 'border-radius: 10px 0px 0px 10px;background:#F5F5F5;width:50%;border-radius:0px 10px 10px 0px;'
        "
        @tap="zhishu(1)"
        >全部收入</view
      >
      <view
        class="zhushubox"
        :style="
          index == 2
            ? ' background:#CFAB71;;width:50%;border-radius:  0 10px 10px 0;color:#fff'
            : 'background:#F5F5F5;;width:50%;border-radius:  0 10px 10px 0; border-radius: 0px 10px 10px 0px;'
        "
        @tap="tuan(2)"
        >审核中</view
      >
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        list: [],
        page: 1,
        size: 10,
        index: 1,
        show: false,
        count: 0,
        sumCount: 0,
        loadingType: 0,
        scrollTop: false,
      }
    },

    methods: {
      zhishu(nub) {
        this.index = nub
      },
      tuan(nub) {
        this.index = nub
      },
    },
  }
</script>

<style lang="scss">
  @import '../../static/css/index.css';

  page {
    background: #ffffff;
  }

  .zhushubox {
    width: 50%;
    text-align: center;
  }

  .item {
    background: white;
    padding: 32rpx;
    margin: 32rpx;
    font-size: 28rpx;
    box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
    border-radius: 16upx;
  }
</style>
